# -*- coding: utf-8 -*-
# https://blog.csdn.net/weixin_52040868
# 公众号：测个der
# 微信：qing_an_an

from PyQt5.QtWidgets import QApplication, QWidget,QLabel,QPushButton
import sys

class MyWidget(QWidget):
    def __init__(self):
        super().__init__()

        # Load and apply the first qss file
        with open('./style.qss', 'r') as f:
            style1 = f.read()
        self.setStyleSheet(style1)

        # Load and apply the second qss file
        with open('./style1.qss', 'r') as f:
            style2 = f.read()
        self.setStyleSheet(self.styleSheet() + style2)

        label = QLabel("sss",self)
        label.setObjectName("label")

        btn = QPushButton("点击", self)
        btn.move(80,80)
        # 如果引用样式，则可以采取如下操作
        # btn.setStyleSheet("background-color:yellow")
        btn1 = QPushButton("获取", self)
        btn1.move(50, 50)
        btn1.setObjectName('btn1')

if __name__ == '__main__':
    app = QApplication(sys.argv)
    widget = MyWidget()
    widget.show()
    sys.exit(app.exec_())